package com.xuecheng.content.job;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;

/**
 * @author wz
 * @description:
 * @date 2021-12-20
 */
@Slf4j
@Component
public class CoursePublishTask {

    @Scheduled(cron = "0/5 * * * * ?")
    public void test() {
        System.out.println(LocalDateTime.now() + ":task invoke 执行");
    }

}
